using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{

  private string _connectionName = string.Empty;

  protected void Page_Load( object sender, EventArgs e )
  {
    //try
    //{

    //  SqlCommand command = new SqlCommand( "pcexe_insertmedia", "Data Source=localhost;Initial Catalog=trendsetter;Integrated Security=True" );
    //  command.CommandTimeout = this.CommandTimeout;
    //  command.CommandType = CommandType.StoredProcedure;
    //  SqlParameter param;

    //  foreach ( string hdr in Request.Form.AllKeys )
    //  {
    //    param = null;
    //    switch ( hdr.ToLower() )
    //    {
    //      case "author":
    //        //param = 
    //        param = new SqlParameter( hdr.ToLower(), Request[ hdr ] );
    //        break;

    //    } //switch
        
    //    if (param != null )
    //    {
    //      command.Parameters.Add( param );
    //    }

    //  } //foreach

    //  try
    //  {
    //    //SqlConnection conn = new SqlConnection( connString );
        
    //    using ( command.Connection )
    //    {
    //      command.Connection.Open();
    //      command.ExecuteNonQuery();
    //    } // using
        
    //    Response.Write( "Ok" );

    //  }
    //  catch ( Exception errData )
    //  {
    //    Response.Write( "Error:" + errData.ToString() );
    //  }

    //} //try
    //catch ( Exception err )
    //{
    //  Response.Write( "Error:" + err.ToString() );
    //}
    
  } //pageload

  /*
  AlbumID
  AlbumIDAlbumArtist
  Author
  Copyright
  Description
  DisplayArtist
  MoreInfo
  ProviderURL
  SourceURL
  Title
  UserEffectiveRating
  UserLastPlayedTime
  UserPlayCount
  UserRating
  UserServiceRating
  WM/AlbumArtist
  WM/AlbumTitle
  WM/Category
  WM/Composer
  WM/Conductor
  WM/Genre
  WM/GenreID
  WM/Lyrics
  WM/Mood
  WM/Provider
  WM/ProviderRating
  WM/ProviderStyle
  WM/Publisher
  WM/SubTitle
  WM/TrackNumber
  WM/UniqueFileIdentifier
  WM/WMCollectionGroupID
  WM/WMCollectionID
  WM/WMContentID
  WM/Writer
  WM/Year
  */
}
